import request from '@/utils/request'

// 档案盒列表
export function getBoxList(query) {
  return request({
    url: '/archive/boxspec/list',
    method: 'get',
    params: query
  })
}

// 档案盒新增 /archive/boxspec
export function addBox(data) {
  return request({
    url: '/archive/boxspec',
    method: 'post',
    data: data
  })
}

// 获取档案盒详情
export function getBoxDetail(specId) {
  return request({
    url: '/archive/boxspec/' + specId,
    method: 'get'
  })
}

// 删除档案盒
export function deleteBox(specId) {
  return request({
    url: '/archive/boxspec/' + specId,
    method: 'delete'
  })
}

